package com.drcoffee.drcoffeemall.service;

import com.drcoffee.drcoffeemall.entry.Machine;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

/*
 * 机器
 * */
public interface MachineService {
    /*
     * 查询机器
     * */
    Map<String, Object> getMachine(Integer type_id, String search);

    /*
     * 根据id查询机器
     * */
    Map<String, Object> getMachineById(Integer id);


    Map<String, Object> getMachineAll();

    Map<String, Object> deleteOld(Integer id);

    Map<String, Object> updateMachine(Machine machine);

    Map<String, Object> updateMachineText(Machine machine);

    ResponseEntity<Object> insertData(MultipartFile file, String fileName, Map<String, Object> stringObjectMap);

}
